<?= $this->element('back') ?>

<? if((int)@$data['Guest']['id']>0): ?>
	<h1><?= strtotitle(__('edit guest')) ?></h1>
<? else: ?>
	<h1><?= strtotitle(__('new')) . ' ' . __('guest') ?></h1>
<? endif; ?>

<?= $this->Form->create('Guest', array('action'=>'save')) ?>
	<?= $this->App->input('id', 'hidden', @$data['Guest']['id']) ?>
	
	<div class="left span50p">
	    <?= $this->App->input('firstname', 'text', @$data['Guest']['firstname'], array('tabindex'=>1)) ?>
	    <?= $this->App->input('jmbg', 'text', @$data['Guest']['jmbg'], array('tabindex'=>3)) ?>
	    <?= $this->App->input('passport_number', 'text', @$data['Guest']['passport_number'], array('tabindex'=>5)) ?>
	    <?= $this->App->input('role', 'text', @$data['Guest']['role'], array('tabindex'=>7)) ?>
	</div>
	
	<div class="left span50p">
	    <?= $this->App->input('surname', 'text', @$data['Guest']['surname'], array('tabindex'=>2)) ?>
	    <?= $this->App->input('brlk', 'text', @$data['Guest']['brlk'], array('tabindex'=>4)) ?>
	    <?= $this->App->input('passport_country', 'text', @$data['Guest']['passport_country'], array('tabindex'=>6)) ?>
	</div>
	
<?= $this->Form->end(strtotitle(__('save'))) ?>